package io.lkt.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lkt.common.utils.PageUtils;
import io.lkt.common.utils.Query;

import io.lkt.modules.sys.dao.BBrandSupplyInfoDao;
import io.lkt.modules.sys.entity.BBrandSupplyInfoEntity;
import io.lkt.modules.sys.service.BBrandSupplyInfoService;


@Service("bBrandSupplyInfoService")
public class BBrandSupplyInfoServiceImpl extends ServiceImpl<BBrandSupplyInfoDao, BBrandSupplyInfoEntity> implements BBrandSupplyInfoService {
    @Autowired
    BBrandSupplyInfoDao bBrandSupplyInfoDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BBrandSupplyInfoEntity> page = this.page(
                new Query<BBrandSupplyInfoEntity>().getPage(params),
                new QueryWrapper<BBrandSupplyInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int upType(BBrandSupplyInfoEntity bBrandSupplyInfoEntity) {
        return bBrandSupplyInfoDao.upType(bBrandSupplyInfoEntity);
    }

    @Override
    public List<BBrandSupplyInfoEntity> queryList(Map<String, Object> map) {
        return bBrandSupplyInfoDao.queryList(map);
    }

}
